@var isAdd = shiro.hasPermission("sys.log.add");
@var isEdit= shiro.hasPermission("sys.log.edit");
@var isDel = shiro.hasPermission("sys.log.delete");
@var content = {
<div class="panel panel-success">
    <div class="panel-body">
        <div id="logTable"></div>
        <script type="text/javascript">
            var table = $('#logTable').bootstrapTableExtension({
                dataUrl: '${ctxPath}/sys/log/list',//数据加载地址
                addUrl: '${ctxPath}/sys/log/add',//数据添加地址
                editUrl: '${ctxPath}/sys/log/edit',//菜单编辑地址
                delUrl: '${ctxPath}/sys/log/delete',//删除数据地址
                isAddBtnIsShow: '${isAdd}' === 'true',
                addBtnText: '添加',
                isEditBtnIsShow: '${isEdit}' === 'true',
                editBtnText: '编辑',
                isDeleteBtnIsShow: '${isDel}' === 'true',
                deleteBtnText: '删除',
                toolbar: 'roleToolbar',
                fixedColumns: true,
                fixedNumber: 2,
                fixedRightNumber: 0,
                columns: [
                    {checkbox: true, printIgnore: true},
                    {field: 'servletPath', title: '路径', align: 'center', sortable: false},
                    {field: 'method', title: 'method', align: 'center', sortable: false},
                    {field: 'queryString', title: '路径参数', align: 'center', sortable: false},
                    {field: 'remoteHost', title: '访问主机', align: 'center', sortable: false},
                    {field: 'remoteAddr', title: '主机地址', align: 'center', sortable: false},
                    {field: 'userName', title: '用户', align: 'center', sortable: false},
                    {
                        field: 'createTime', title: '创建时间', align: 'center', sortable: false,
                        formatter: function (arg) {
                            return arg.slice(0, 10) + " " + arg.slice(11, 20);
                        }
                    }
                ]
            });
        </script>
    </div>
</div>
@};
@include('../../layout/_open_content.html',{content:content}){}